package com.scgl.depot.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 库位管理对象 location
 *
 * @author mobai
 * @date 2024-10-25
 */
public class Location extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 库位编码 */
    @Excel(name = "库位编码")
    private String locationId;

    /** 库位名称 */
    @Excel(name = "库位名称")
    private String name;

    /** $column.columnComment */
    private Long depotId;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createName;

    @Excel(name = "所属仓库")
    private String dname;

    @Override
    public String toString() {
        return "Location{" +
                "id=" + id +
                ", createDate=" + createDate +
                ", locationId='" + locationId + '\'' +
                ", name='" + name + '\'' +
                ", depotId=" + depotId +
                ", status=" + status +
                ", createName='" + createName + '\'' +
                ", dname='" + dname + '\'' +
                ", isDelete=" + isDelete +
                '}';
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    /** 删除 */
    private Long isDelete;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setLocationId(String locationId)
    {
        this.locationId = locationId;
    }

    public String getLocationId()
    {
        return locationId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDepotId(Long depotId)
    {
        this.depotId = depotId;
    }

    public Long getDepotId()
    {
        return depotId;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setCreateName(String createName)
    {
        this.createName = createName;
    }

    public String getCreateName()
    {
        return createName;
    }
    public void setIsDelete(Long isDelete)
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete()
    {
        return isDelete;
    }

}
